package cn.ulc.store.dao.staff;
import cn.ulc.store.dao.BaseDao;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.annotatoin.SqlResource;
import cn.ulc.store.entity.staff.StaffRole;

import java.util.List;


/*
* StaffRole
* gen by Jin mapper 2019-06-12
*/
@SqlResource("staff.staffRole")
public interface StaffRoleDao extends BaseDao<StaffRole> {

    PageQuery<StaffRole> findListPage(PageQuery pageQuery);

    List<StaffRole> findByStaff(Long staffId);

    List<StaffRole> findByCompany(Long companyId);

    Boolean checkStaffContainRole(Long staffId,String role);

    void deletedByStaff(Long staffId,Long modifierId);

    StaffRole findByRole(Long staffId,String role);

}
